<?php
/**
 * ShopEx licence
 *
 * @copyright  Copyright (c) 2005-2010 ShopEx Technologies Inc. (http://www.shopex.cn)
 * @license  http://ecos.shopex.cn/ ShopEx License
 */
 
class b2c_finder_feedback{
	var $column_edit;
	public function __construct($app)
    {
        $this->app = $app;
		$this->detail_basic = app::get('b2c')->_('信息反馈列表');
        $this->column_edit = app::get('b2c')->_('操作');
    }

	function detail_basic($id){
        $render = app::get('b2c')->render();
        $oitem = kernel::single("b2c_mdl_feedback");
        $items = $oitem->getList('*',array('id' => $id), 0, 1);
		$render->pagedata['ids'] = $id;
        $render->pagedata['data'] = $items[0];
        return $render->fetch('admin/member/feedback.html');
    }

	public function column_edit($row){
		$render = $this->app->render();
        $arr = array(
            'app'=>$_GET['app'],
            'ctl'=>$_GET['ctl'],
            'act'=>$_GET['act'],
            'finder_id'=>$_GET['_finder']['finder_id'],
            'action'=>'detail',
            'finder_name'=>$_GET['_finder']['finder_id'],
        );
        $arr_link = array(
            'finder'=>array(
                'detail_basic'=>array(
					'href'=>'javascript:void(0);',
                    'submit'=>'index.php?'.utils::http_build_query($arr).'&finderview=detail_basic&id='.$row['id'].'&_finder[finder_id]='.$_GET['_finder']['finder_id'],'label'=>app::get('b2c')->_('处理反馈信息'),
                    'target'=>'tab',
                ),
            ),
        );
        $render->pagedata['arr_link'] = $arr_link;
        $render->pagedata['handle_title'] = app::get('b2c')->_('编辑');
        $render->pagedata['is_active'] = 'true';
        return $render->fetch('admin/actions.html');
	}
}
